package src.com.atguigu06.project.team.domain;

/**
 * ClassName: Architcet
 * Package: src.com.atguigu06.project.team.domain
 * Description:
 *
 * @Author BuTang
 * @Create 2023/5/5 21:09
 * @Version 1.0
 */
public class Architcet extends Designer{

    private int stock;

    public Architcet() {
    }


    public void setStock(int stock) {
        this.stock = stock;
    }

    public Architcet(int id, String name, int age, double salary, Equipment equipment, double bonus, int stock) {
        super(id, name, age, salary, equipment, bonus);
        this.stock = stock;
    }

    public int getStock() {
        return stock;
    }

    @Override
    public String toString() {
        return getDetails() + "\t架构师\t" + super.getStatus() + "\t"+super.getBonus()+"\t"+stock+"\t" + super.getEquipment().getDescription() ;
    }

}
